Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dinovo 40 posts 59 karma points
    Sep 09, 2009 @ 21:42
    Dinovo
    0

    'Error parsing XSLT' after installing umbraco [commerce]?

    hi,

    Newbie in umbraco here - so far so good. I installed the umbraco commerce module, and after this my xslt topmenu no longer works - it just displays Error parsing XSLT. Any ideas as to what could have gone wrong?

    The xslt is standar and taken from the runway module (changed nothing and had i working before i installed commerce module).

  • Jesper Hauge 298 posts 487 karma points c-trib
    Sep 09, 2009 @ 21:48
    Jesper Hauge
    0

    Sounds weird, a parsing error should only occur if theres a syntax error in the xslt-code. I'd suggest you double check your xslt-file. Are you able to save it, or does it display an  error when saving the file.

    Regards
    .Hauge

  • Dinovo 40 posts 59 karma points
    Sep 09, 2009 @ 21:50
    Dinovo
    0

    Able to save without any problems and errors - there should be nothing wrong with the xslt, but just to doublecheck i will post it here;

     

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <xsl:stylesheet
     version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:msxml="urn:schemas-microsoft-com:xslt"
     xmlns:umbraco.library="urn:umbraco.library"
     exclude-result-prefixes="msxml umbraco.library">


    <xsl:output method="xml" omit-xml-declaration="yes" />

    <xsl:param name="currentPage"/>

    <!-- Input the documenttype you want here -->
    <xsl:variable name="level" select="1"/>

    <xsl:template match="/">

    <!-- The fun starts here -->
    <ul>
    <xsl:for-each select="$currentPage/ancestor-or-self::node [@level=$level]/node [string(data [@alias='umbracoNaviHide']) != '1']">
     <li>
      <a href="{umbraco.library:NiceUrl(@id)}">
       <xsl:value-of select="@nodeName"/>
      </a>
     </li>
    </xsl:for-each>
    </ul>

    </xsl:template>

    </xsl:stylesheet>

  • Jesper Hauge 298 posts 487 karma points c-trib
    Sep 09, 2009 @ 22:03
    Jesper Hauge
    0

    Nothing wrong there as far as I can tell.

    Try adding ?umbdebugshowtrace=true to the end of the url where the error occurs, this will output detailed error messages to the end of the page, then post the output here, if the error is not self-explaining.

    Regards
    .Hauge

  • Dinovo 40 posts 59 karma points
    Sep 09, 2009 @ 22:10
    Dinovo
    0

    I can see nothing out of the ordinary in the trace - no specific error messages displayed anywhere.

    aspx.page Begin PreInit    
    umbracoInit handling request 4.956E-05 0.000050
    request handler current url '' 0.00014804 0.000098
    umbracoRequestHandler xpath: '/root/node' 0.0002412 0.000093
    umbracoRequestHandler xpath: '/root/node [@urlName = ""] | /root/node' 0.000282 0.000041
    umbracoRequestHandler xpath: '/root/node [@urlName = ""] | /root/node' 0.00032336 0.000041
    umbracoRequestHandler Just before xPath query (False, '/root/node [@urlName = ""] | /root/node') 0.00036244 0.000039
    umbracoRequestHandler pageXPathQueryStart: '/root' 0.00039388 0.000031
    umbracoRequestHandler After xPath query 0.00049216 0.000098
    umbracoRequestHandler Access checking started 0.00057024 0.000078
    umbracoRequestHandler Page not protected 0.0006284 0.000058
    umbracoRequestHandler Access checking ended 0.0006606 0.000032
    umbracoInit Done handling request 0.00070032 0.000040
    umbracoPage Element loaded: bodyText 0.0008412 0.000141
    umbracoPage Element loaded: siteName 0.00088532 0.000044
    umbracoPage Element loaded: siteDescription 0.00092308 0.000038
    umbracoPage Element loaded: footertext 0.00097024 0.000047
    umbracoPage Element loaded: leftcolumn 0.001014 0.000044
    umbracoPage Pagedata loaded for Website (ID: 1059, Version: c1957986-c08e-4853-ad54-650881fae216) 0.00105312 0.000039
    aspx.page End PreInit 0.00173724 0.000684
    aspx.page Begin Init 0.00178216 0.000045
    item Start parsing 'pageName' 0.00185088 0.000069
    item Done parsing 'pageName' 0.00192768 0.000077
    item.recursive Item loaded from 1059 0.0020334 0.000106
    item Start parsing 'siteName' 0.00207864 0.000045
    item Done parsing 'siteName' 0.00214848 0.000070
    item.recursive Item loaded from 1059 0.00225216 0.000104
    item Start parsing 'siteName' 0.00229244 0.000040
    item Done parsing 'siteName' 0.0023622 0.000070
    item.recursive Item loaded from 1059 0.00246044 0.000098
    item Start parsing 'siteDescription' 0.00249928 0.000039
    item Done parsing 'siteDescription' 0.00256908 0.000070
    umbracoMacro Macro loaded from cache (ID: 12, TopMenu) 0.00267704 0.000108
    renderMacro Rendering started (macro: TopMenu, type: 1, cacheRate: 0) 0.0027254 0.000048
    umbracoMacro Before adding extensions 0.00284432 0.000119
    item.recursive Item loaded from 1059 0.00390092 0.001057
    item Start parsing 'leftcolumn' 0.00396288 0.000062
    item Done parsing 'leftcolumn' 0.004049 0.000086
    umbracoMacro Macro loaded from cache (ID: 7, [commerce]FeaturedProduct) 0.00424328 0.000194
    renderMacro Rendering started (macro: [commerce]FeaturedProduct, type: 3, cacheRate: 60) 0.00429468 0.000051
    renderMacro Content loaded from cache ('1059-1-[commerce]FeaturedProduct-1-1070-')... 0.00435648 0.000062
    umbracoMacro Macro loaded from cache (ID: 8, [commerce]MiniCart) 0.00443376 0.000077
    renderMacro Rendering started (macro: [commerce]MiniCart, type: 3, cacheRate: 0) 0.00448044 0.000047
    umbracoMacro Usercontrol added (/usercontrols/commerce/MiniCart.ascx) 0.0045222 0.000042
    loadUserControl Usercontrol added with id 'MiniCart_3' 0.00491052 0.000388
    item Start parsing 'bodyText' 0.00502352 0.000113
    item Done parsing 'bodyText' 0.00510824 0.000085
    item.recursive Item loaded from 1059 0.0054564 0.000348
    item Start parsing 'footertext' 0.0054962 0.000040
    item Done parsing 'footertext' 0.0055662 0.000070
    aspx.page End Init 0.00565608 0.000090
    aspx.page Begin InitComplete 0.00569328 0.000037
    aspx.page End InitComplete 0.00572568 0.000032
    aspx.page Begin PreLoad 0.00575756 0.000032
    aspx.page End PreLoad 0.00579676 0.000039
    aspx.page Begin Load 0.00582884 0.000032
    aspx.page End Load 0.0080846 0.002256
    aspx.page Begin LoadComplete 0.008212 0.000127
    aspx.page End LoadComplete 0.00824836 0.000036
    aspx.page Begin PreRender 0.00828008 0.000032
    aspx.page End PreRender 0.00835488 0.000075
    aspx.page Begin PreRenderComplete 0.00839232 0.000037
    aspx.page End PreRenderComplete 0.00842464 0.000032
    aspx.page Begin SaveState 0.01256244 0.004138
    aspx.page End SaveState 0.01280644 0.000244
    aspx.page Begin SaveStateComplete 0.01284692 0.000040
    aspx.page End SaveStateComplete 0.0128862 0.000039
    aspx.page Begin Render 0.0129178 0.000032
    aspx.page End Render 0.0152278 0.002310
  • Tim 225 posts 690 karma points
    Sep 09, 2009 @ 22:25
    Tim
    0

    There are a few possibe areas to check:

    Have any new nodes been added to the content tree that would be picked up by your Top Nav.

    Do they have special characters in them i.e. > or <

    Does the navigation fail on all pages or is it just specific ones?

    Try commenting parts of your xslt out, to see if you can narrow the error down to a line or statement.

    Tim

  • Dinovo 40 posts 59 karma points
    Sep 09, 2009 @ 22:28
    Dinovo
    0

    Even if i just run this, it still fails;

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <xsl:stylesheet
     version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:msxml="urn:schemas-microsoft-com:xslt"
     xmlns:umbraco.library="urn:umbraco.library"
     exclude-result-prefixes="msxml umbraco.library">


    <xsl:output method="xml" omit-xml-declaration="yes" />

    <xsl:param name="currentPage"/>

    <!-- Input the documenttype you want here -->
    <xsl:variable name="level" select="1"/>

    <xsl:template match="/">

    <!-- The fun starts here -->

    </xsl:template>

    </xsl:stylesheet>

     

    I have also tried a completly blank xslt file - that also fails.

  • Tim 225 posts 690 karma points
    Sep 09, 2009 @ 22:33
    Tim
    0

    Hmmmm

    Are you sure you're editing the right XSLT file, check in the macro that it is pointing to the right file.

    Have you tried taking the macro out of your template.

    This is an odd one!

    Tim

  • Dinovo 40 posts 59 karma points
    Sep 09, 2009 @ 22:50
    Dinovo
    0

    I am using this line to call the xslt; <umbraco:Macro Alias="TopMenu" runat="server" />. When i remove this line from the master the error disapers but of course no top menu. When i insert it again the error apears again.
    In Macros in umbraco there is a "TopMenu" item calling "TopMenu.xslt" (name and alias TopMenu).

  • Dinovo 40 posts 59 karma points
    Sep 09, 2009 @ 22:53
    Dinovo
    0

    Just tried using a couple of other xslt instead (standard xslt from umbraco (xsltsearch etc.)) - each and everyone one of them fails - same message, :-s

  • Tim 225 posts 690 karma points
    Sep 09, 2009 @ 22:55
    Tim
    0

    OK

    I'm probably barking up entirely the wrong tree here but have you tried renaming the macro and XSLT file.

    Also do other XSLT macros work?

  • Dinovo 40 posts 59 karma points
    Sep 09, 2009 @ 22:59
    Dinovo
    0

    Hmm - something interesting showed up now, Tried to change the name of the xslt file in umbraco and this error showed;

    Error occured

    System.Exception: Could not load type CommerceForUmbraco.xsltExtensions.product (C:\data\websites\bin\CommerceForUmbraco.xsltExtensions.dll) for XSLT extension C:\data\websites\bin\CommerceForUmbraco.xsltExtensions.dll. Please check config/xsltExentions.config.
    at umbraco.macro.GetXsltExtensions()
    at umbraco.macro.AddMacroXsltExtensions()
    at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)

     

    Looking in the xsltExtensions.config this shows;

    <?xml version="1.0" encoding="utf-8"?>
    <XsltExtensions>
      <!--
      <ext assembly="/bin/name-of-dll-without-dll-extension" type="Fully.Qualified.Name.Of.Type.Including.Namespace" alias="Prefix-to-use-in-xslt" />
      -->
      <ext assembly="/bin/CommerceForUmbraco.xsltExtensions" type="CommerceForUmbraco.xsltExtensions.product" alias="ucProduct">
      </ext>
    </XsltExtensions>

    Any ideas?

  • Tim 225 posts 690 karma points
    Sep 09, 2009 @ 23:03
    Tim
    0

    Hmmmm

    Is the CommerceForUmbraco.xsltExtensions.dll in the bin folder?

    Have you tried restarting IIS if it is.

    Tim

  • titorge 14 posts 28 karma points
    Oct 29, 2009 @ 18:34
    titorge
    0

    Maybe you found a solution to the problem?

    If not, try to replace the alias="ucProduct">

    to

    alias="c4u"> in your xsltExtensions.config

    It's propably no errors in your XSLT!

Please Sign in or register to post replies

Write your reply to:

Draft